home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2000 June / Internet Magazine June 2000.iso / pc / software / windows / building / wirefusion / html / ex4 / bob14.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-01-07  |  776 b   |  37 lines

  1. import java.awt.Event;
  2. import java.io.DataInputStream;
  3.  
  4. public class bob14 extends bob {
  5.    public int color;
  6.  
  7.    // $FF: renamed from: he (java.awt.Event) void
  8.    public void method_0(Event var1) {
  9.       switch (var1.id) {
  10.          case 1:
  11.             this.color = ((bob14)var1.arg).color;
  12.             ((bob)this).ce(this, 2);
  13.             break;
  14.          case 2:
  15.             ((bob)this).ce(this, 1);
  16.             break;
  17.          case 3:
  18.          case 4:
  19.          case 5:
  20.             int var2 = (5 - var1.id) * 8;
  21.             this.color &= 16777215 - (255 << var2);
  22.             this.color += (int)Math.min((double)255.0F, Math.max(((bob10)var1.arg).value, (double)0.0F)) << var2;
  23.             ((bob)this).ce((bob)var1.arg, var1.id);
  24.       }
  25.  
  26.    }
  27.  
  28.    // $FF: renamed from: rd (java.io.DataInputStream) void
  29.    public void method_1(DataInputStream var1) {
  30.       try {
  31.          this.color = var1.readInt();
  32.       } catch (Exception var3) {
  33.       }
  34.  
  35.    }
  36. }
  37.